package com.wms.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("类别")
public class CategoryOrder {
    @ApiModelProperty("类别ID")
    private Integer id;

    @ApiModelProperty(value = "创建人")
    private Integer createBy;

    @ApiModelProperty("类别名称")
    private String name;

    @ApiModelProperty("编码")
    private String code;

    @ApiModelProperty("上级类别ID")
    private Integer parentId;

    @ApiModelProperty("显示顺序")
    private Integer orderNum;

    @ApiModelProperty(value = "是否删除")
    private Integer isdel;

    @ApiModelProperty(value = "子类别")
    private List<CategoryOrder> children;
}
